#pragma once
#include "HoopsTool.h"
#include "dcl_ModelTool.h"
#include "RoutingProgressDlg.h"

class CRoutingProgressDlg;
class DEF_MODELTOOL CLayerTempletTool :
	public CHoopsTool
{
public:
	CLayerTempletTool(HBaseView *view, CString szTemplet, int nRefId);
	~CLayerTempletTool(void);

	void Init();
	bool ApplyTemplet();
	bool ReadTemplateFile();
	bool ApplyMergeRule();

	bool CreateProgressDlg(int nLayerCount);

private:
	CString m_szTempletName;
	CSystem *m_pSystem;
	int m_nRefLayerId;
	CLayer *m_pRefLayer;
	CRoutingProgressDlg *m_progDlg;

	map<CLayer* ,MapLayerRules> m_mapLayer2Rules;
};

